<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <style>
            div {
                background-color: black;
            }

            span {
                background-color: red;
            }
        </style>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
        <script type="text/javascript">
            var ban = true;
            $(function() {
                $("#a").bind("DOMSubtreeModified", function() {
                    alert("tree changed");
                });


                $("#add").click(function() {
                    $("#a").append("<span>hey there</span>");
                });
            });
        </script>
    </head>
    <body>
        <div id="a">
        </div>

        <button id="add">Add to Div</button>
    </body>
</html>
